package com.cndw.kungfu.domain;

import com.cndw.kungfu.vo.EventVO;

/**
 * 玩家事件
 * @author fantadust
 * @date 2011-5-11 下午07:55:37
 */
public class Event {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 收件人
	 */
	private long playerId;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 添加时间
	 */
	private int addTime;
	/**
	 * 类型
	 */
	private int type;
	/**
	 * 是否保存
	 */
	private boolean saved;
	/**
	 * 是否已读
	 */
	private boolean readed;
	/**
	 * 状态
	 */
	private int status;
	
	public static final int typeMartialGest = 3;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getAddTime() {
		return addTime;
	}
	public void setAddTime(int addTime) {
		this.addTime = addTime;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public boolean isSaved() {
		return saved;
	}
	public void setSaved(boolean saved) {
		this.saved = saved;
	}
	public boolean isReaded() {
		return readed;
	}
	public void setReaded(boolean readed) {
		this.readed = readed;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public EventVO toEventVO(){
		return new EventVO(this);
	}
	
	
}
